﻿using System;

namespace Hopscotch.Presentation.Common.Commands
{
    public abstract class CommandBase
    {
        public event EventHandler CanExecuteChanged;

        public void RaiseCanExecuteChanged()
        {
            var canExecuteChanged = CanExecuteChanged;

            if (canExecuteChanged != null)
                canExecuteChanged(this, new EventArgs());
        }
    }
}
